﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace HeathCareSystem
{
    public class NguoiDungBUS
    {
        public List<NguoiDungDTO> LayDanhSachBacSi()
        {
            return new NguoiDungDAO().LayDanhSachBacSi();
        }

        public bool ThemNguoiDung(NguoiDungDTO nd)
        {
            return new NguoiDungDAO().ThemNguoiDung(nd);
        }

        public bool XoaNguoiDung(string MaNguoiDung)
        {
            return new NguoiDungDAO().XoaNguoiDung(MaNguoiDung);
        }

        public bool CapNhatNguoiDung(NguoiDungDTO nd)
        {
            return new NguoiDungDAO().CapNhatNguoiDung(nd);
        }

        public string TaoMaNguoiDungTuDong()
        {
            return new NguoiDungDAO().TaoMaNguoiDungTuDong();
        }
    }
}